﻿using System.Collections.Generic;
using System.Xml.Serialization;
using TestPrint.XMLhelp;

namespace TestPrint.PrintNameHelp
{
    //public class LocalSettings : AppBase<LocalSettings>
    //{
    //    private List<LocalPrint> _Prints;

    //    [XmlArrayItem("LocalPrint", IsNullable = false)]
    //    public List<LocalPrint> Prints
    //    {
    //        get { return _Prints ?? (_Prints = new List<LocalPrint>()); }
    //        set { _Prints = value; }
    //    }
    //}

    public class LocalPrint
    {
        /// <summary>
        ///     打印类型
        /// </summary>
        public string PrintName { get; set; }

        /// <summary>
        ///     打印机名
        /// </summary>
        public string Printer { get; set; }

        private string _PrintForm = "";

        /// <summary>
        ///     纸张类型
        /// </summary>
        public string PrintForm
        {
            get { return _PrintForm; }
            set { _PrintForm = value; }
        }

        /// <summary>
        ///     打印份数
        /// </summary>
        public int Copies { get; set; }

        /// <summary>
        ///     纸张宽度
        /// </summary>
        public int PageWith { get; set; }

        /// <summary>
        ///     纸张高度
        /// </summary>
        public int PageHeight { get; set; }
    }
}
